Semiconductor device

ABSTRACT

A semiconductor device includes a delay-locked clock generation circuit configured to generate a delay-locked clock which is driven by at least one internal clock selected from a plurality of internal clocks in response to a phase control signal. The semiconductor device also includes a latency command generation circuit configured to generate a latency command for generating transmission data from data by latching an internal command sequentially by the at least one internal clock in response to the phase control signal and shifting the sequentially latched internal command by a period set by a shifting control signal in response to the delay-locked clock.

CROSS-REFERENCE TO RELATED APPLICATION

The present application claims priority under 35 U.S.C. § 119(a) to Korean Patent Application No. 10-2018-0068348, filed on Jun. 14, 2018, in the Korean Intellectual Property Office, which is incorporated herein by reference in its entirety.

BACKGROUND 1. Technical Field

Embodiments of the present disclosure relate to a semiconductor device which transmits data after a latency elapses.

2. Related Art

A semiconductor device performs, after a command is applied and a latency elapses, an internal operation corresponding to the command. The latency is stored in a mode register through a mode register set operation. The semiconductor device may set a delay period corresponding to the latency, by using a delay circuit, when the internal operation is performed after the command is applied.

Meanwhile, the semiconductor device uses a delay-locked loop for synchronization of a clock used in a semiconductor system and an internal clock used in the semiconductor device. The semiconductor device generates a delay-locked clock by delaying an external clock by a preset delay period through using the delay-locked loop, and transmits data by using the delay-locked clock.

SUMMARY

In accordance with the present teachings, a semiconductor device may include a delay-locked clock generation circuit configured to generate a delay-locked clock which is driven by at least one internal clock selected from a plurality of internal clocks in response to a phase control signal. The semiconductor device may also include a latency command generation circuit configured to generate a latency command for generating transmission data from data by latching an internal command sequentially by the at least one internal clock selected from among the plurality of internal clocks in response to the phase control signal and shifting the sequentially latched internal command by a period set by a shifting control signal in response to the delay-locked clock.

Also in accordance with the present teachings, a semiconductor device may include a clock divider circuit configured to generate first, second, third, and fourth internal clocks by dividing a clock. The semiconductor device may also include a clock delay circuit configured to generate a delay-locked clock which is driven by internal clocks selected in response to a phase control signal from among the first, second, third, and fourth internal clocks. The semiconductor device may further include a command delay circuit configured to generate a delayed command by latching an internal command sequentially by internal clocks selected in response to the phase control signal from among the first, second, third, and fourth internal clocks and by latching the sequentially latched internal command by the delay-locked clock.

Further in accordance with the present teachings, a semiconductor device may include a clock divider circuit configured to generate first, second, third, and fourth internal clocks by dividing a clock and a clock delay circuit configured to generate a delay-locked clock which is driven by internal clocks selected in response to a phase control signal from among the first, second, third, and fourth internal clocks. The semiconductor device may also include a correction code generation circuit configured to generate a correction code which is shifted when the phase control signal has a preset logic level combination and a command phase selection circuit configured to generate a phase selection command by latching an internal command sequentially by internal clocks selected by the phase control signal from among the first, second, third, and fourth internal clocks and by latching the sequentially latched internal command by the delay-locked clock. The semiconductor device may further include a delay correction circuit configured to generate a delayed command based on delaying the phase selection command by the correction code.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 shows a block diagram illustrating a configuration of a semiconductor device in accordance with an embodiment.

FIG. 2 shows a block diagram illustrating a configuration of the delay-locked clock generation circuit included in the semiconductor device shown in FIG. 1.

FIG. 3 shows a circuit diagram of the clock delay circuit included in the delay-locked clock generation circuit shown in FIG. 2.

FIG. 4 shows a table to assist in the explanation of the operation of the clock delay circuit shown in FIG. 3.

FIG. 5 shows a timing diagram to assist in the explanation of the operation of the clock delay circuit shown in FIG. 3.

FIG. 6 shows a block diagram illustrating a configuration of the latency command generation circuit included in the semiconductor device shown in FIG. 1.

FIG. 7 shows a timing diagram to assist in the explanation of the operation of the shifting control signal generation circuit shown in FIG. 6.

FIG. 8 shows a circuit diagram illustrating the reset delay circuit included in the latency command generation circuit shown in FIG. 6.

FIGS. 9 to 12 show timing diagrams to assist in the explanation of the operation of the reset delay circuit shown in FIG. 8.

FIG. 13 shows a circuit diagram illustrating the command delay circuit included in the latency command generation circuit shown in FIG. 6.

FIGS. 14 to 17 show timing diagrams to assist in the explanation of the operation of the command delay circuit shown in FIG. 13.

FIG. 18 shows a block diagram illustrating a configuration of the command delay circuit included in the latency command generation circuit shown in FIG. 6.

FIG. 19 shows a circuit diagram illustrating the phase control signal delay circuit included in the command delay circuit shown in FIG. 18.

FIG. 20 shows a circuit diagram illustrating the latch control pulse generation circuit included in the command delay circuit shown in FIG. 18.

FIG. 21 shows a diagram illustrating the correction code generation circuit included in the command delay circuit shown in FIG. 18.

FIGS. 22 to 24 show timing diagrams to assist in the explanation of the operation of the correction code generation circuit shown in FIG. 21.

FIG. 25 shows a circuit diagram illustrating the command phase selection circuit included in the command delay circuit shown in FIG. 18.

FIG. 26 shows a circuit diagram illustrating the delay correction circuit included in the command delay circuit shown in FIG. 18.

FIGS. 27 to 30 show timing diagrams to assist in the explanation of the operation of the delay correction circuit shown in FIG. 26.

FIGS. 31 to 40 show timing diagrams to assist in the explanation of the operation of the latency command generation circuit shown in FIG. 6.

DETAILED DESCRIPTION

Hereinafter, a semiconductor device is described below with reference to the accompanying drawings through various examples of embodiments.

Various embodiments are directed to a semiconductor device capable of generating a latch command by delaying a command by a period set by a latency and transmitting data in synchronization with the latch command.

According to some embodiments, when generating a delay-locked clock by delaying an internal clock in a delay-locked loop, the delay-locked clock is selectively driven by some internal clocks selected from among internal clocks, through using a phase rotator. As a consequence, even though a delay period for delaying an internal clock in the delay-locked loop increases, it is not necessary to add a delay circuit and thus it is possible to prevent power and area consumption from increasing.

Also in accordance with some embodiments, by generating a delay command through latching an internal command sequentially by some internal clocks selected from among the internal clocks, even though a delay period for delaying an internal command increases, it is not necessary to add a delay circuit and thus it is possible to prevent power and area consumption from increasing.

Further in accordance with some embodiments, by adjusting a time at which the delay command is generated, by a correction code, when a phase control signal has a preset logic level combination, it is possible to prevent a time at which the delay command is generated, from being advanced or deferred, when the phase control signal has the preset logic level combination.

As shown in FIG. 1, a semiconductor device 1 in accordance with an embodiment may include a delay-locked clock generation circuit 2, a latency command generation circuit 3, and a data transmission circuit 4.

The delay-locked clock generation circuit 2 may generate a first internal clock ICLK, a second internal clock QCLK, a third internal clock IBCLK, a fourth internal clock QBCLK, a phase control signal PH<0:1>, and a delay-locked clock DCLK. A clock CLK may be applied from a memory controller (not shown) positioned outside the semiconductor device 1. The delay-locked clock generation circuit 2 may generate the first internal clock ICLK, the second internal clock QCLK, the third internal clock IBCLK, and the fourth internal clock QBCLK by dividing the clock CLK. The cycle of each of the first internal clock ICLK, the second internal clock QCLK, the third internal clock IBCLK, and the fourth internal clock QBCLK may be set to N times the cycle of the clock CLK. N may be set to a natural number. In the present embodiment, N may be set to 2. The second internal clock QCLK may be set to have a phase later by 90 degrees than the first internal clock ICLK. The second internal clock QCLK may be generated by delaying the first internal clock ICLK by a period corresponding to the half cycle of the clock CLK. The third internal clock IBCLK may be set to have a phase later by 90 degrees than the second internal clock QCLK. The third internal clock IBCLK may be generated by delaying the second internal clock QCLK by the period corresponding to the half cycle of the clock CLK. The fourth internal clock QBCLK may be set to have a phase later by 90 degrees than the third internal clock IBCLK. The fourth internal clock QBCLK may be generated by delaying the third internal clock IBCLK by the period corresponding to the half cycle of the clock CLK.

The delay-locked clock generation circuit 2 may drive the delay-locked clock DCLK by at least one of the first internal clock ICLK, the second internal clock QCLK, the third internal clock IBCLK, and the fourth internal clock QBCLK depending on the logic level combination of the phase control signal PH<0:1>. The delay-locked clock generation circuit 2 may generate the delay-locked clock DCLK, which is driven to be the same as one of the first internal clock ICLK, the second internal clock QCLK, the third internal clock IBCLK, and the fourth internal clock QBCLK, depending on the logic level combination of the phase control signal PH<0:1>. The delay-locked clock generation circuit 2 may be realized by a phase rotator. The delay-locked clock generation circuit 2 may generate the phase control signal PH<0:1> by delaying the delay-locked clock DCLK by a preset delay period and then comparing the delayed delay-locked clock DCLK with one of the first internal clock ICLK, the second internal clock QCLK, the third internal clock IBCLK, and the fourth internal clock QBCLK. In the present embodiment, the delay-locked clock generation circuit 2 may generate the phase control signal PH<0:1> by delaying the delay-locked clock DCLK by the preset delay period and then comparing the delayed delay-locked clock DCLK with the first internal clock ICLK. The logic level combination of the phase control signal PH<0:1> may be set variously depending on the phases of the delay-locked clock DCLK and the first internal clock ICLK. A detailed configuration and operation of the delay-locked clock generation circuit 2 is described later with reference to FIGS. 2 to 5. In particular, the configuration and operation of the phase rotator included in the delay-locked clock generation circuit 2 is described later in detail with reference to FIGS. 3 to 5. Because the delay-locked clock generation circuit 2 uses the phase rotator, even though a delay period for delaying the first internal clock ICLK increases, it is not necessary to add a delay circuit and thus it is possible to prevent power and area consumption from increasing.

The latency command generation circuit 3 may generate a latency command LCMD from a command CMD in response to a reset signal RST, a column latency signal CL, the first internal clock ICLK, the second internal clock QCLK, the third internal clock IBCLK, the fourth internal clock QBCLK, the phase control signal PH<0:1>, and the delay-locked clock DCLK. The command CMD may be applied from the memory controller (not shown) positioned outside the semiconductor device 1.

The latency command generation circuit 3 may generate a delayed command (see the reference symbol DCMD of FIG. 6) through latching an internal command (see the reference symbol ICMD of FIG. 6) sequentially by clocks selected depending on the logic level combination of the phase control signal PH<0:1> from among the first internal clock ICLK, the second internal clock QCLK, the third internal clock IBCLK, and the fourth internal clock QBCLK. The latency command generation circuit 3 may generate the latency command LCMD by delaying the delayed command (see the reference symbol DCMD of FIG. 6) by a period that is determined by the reset signal RST and the column latency signal CL. The latency command generation circuit 3 may include a command delay circuit (see the reference numeral 34 of FIG. 6), which is realized by an equivalent circuit of the phase rotator included in the delay-locked clock generation circuit 2. A detailed configuration and operation of the latency command generation circuit 3 is described later with reference to FIGS. 6 to 40. Because the latency command generation circuit 3 includes the command delay circuit (see the reference numeral 34 of FIG. 6), which is realized by an equivalent circuit of a phase rotator, even though a delay period for delaying the internal command (see the reference symbol ICMD of FIG. 6) increases, it is not necessary to add a delay circuit, and thus it is possible to prevent power and area consumption from increasing.

The data transmission circuit 4 may generate transmission data TDQ from data DATA in synchronization with the delay-locked clock DCLK when the latency command LCMD is generated. The latency command LCMD may be generated to generate the transmission data TDQ when a period set by a latency elapses after the internal command ICMD for a read operation is generated. As used herein, the word “when” does not always imply simultaneity. It can also indicate that a condition is met. For example, as written above, the transmission data TDQ is generated when the condition of the latency command LCMD being generated is true. Use of the word “when” does not necessarily imply that the transmission data TDQ and the latency command LCMD are generated at the same time.

Referring to FIG. 2, the delay-locked clock generation circuit 2 may include a clock pad 21, a clock divider circuit 22, a clock delay circuit 23, a clock replication delay circuit 24, and a phase control signal generation circuit 25.

The clock divider circuit 22 may receive the clock CLK through the clock pad 21. The clock divider circuit 22 may generate the first internal clock ICLK, the second internal clock QCLK, the third internal clock IBCLK, and the fourth internal clock QBCLK by dividing the clock CLK. The cycle of each of the first internal clock ICLK, the second internal clock QCLK, the third internal clock IBCLK, and the fourth internal clock QBCLK may be set to two times the cycle of the clock CLK. The second internal clock QCLK may be set to have a phase later by 90 degrees than the first internal clock ICLK. The second internal clock QCLK may be generated by delaying the first internal clock ICLK by the period corresponding to the half cycle of the clock CLK. The third internal clock IBCLK may be set to have a phase later by 90 degrees than the second internal clock QCLK. The third internal clock IBCLK may be generated by delaying the second internal clock QCLK by the period corresponding to the half cycle of the clock CLK. The fourth internal clock QBCLK may be set to have a phase later by 90 degrees than the third internal clock IBCLK. The fourth internal clock QBCLK may be generated by delaying the third internal clock IBCLK by the period corresponding to the half cycle of the clock CLK.

The clock delay circuit 23 may generate the delay-locked clock DCLK by delaying the first internal clock ICLK by a first delay period D1 that is determined depending on the logic level combination of the phase control signal PH<0:1>. The clock delay circuit 23 may drive the delay-locked clock DCLK by at least one of the first internal clock ICLK, the second internal clock QCLK, the third internal clock IBCLK, and the fourth internal clock QBCLK depending on the logic level combination of the phase control signal PH<0:1>. As the clock delay circuit 23 is realized by a phase rotator, even though a delay period for delaying the first internal clock ICLK increases, it is not necessary to add a delay circuit, and thus it is possible to prevent power and area consumption from increasing.

The clock delay circuit 23 may drive the delay-locked clock DCLK in response to the first internal clock ICLK and the third internal clock IBCLK in the case where the logic level combination of the phase control signal PH<0:1> is ‘00.’ The case where the logic level combination of the phase control signal PH<0:1> is ‘00’ means that all of the bits included in the phase control signal PH<0:1> are at logic low levels. In the case where the logic level combination of the phase control signal PH<0:1> is ‘00,’ the clock delay circuit 23 may pull-up drive the delay-locked clock DCLK in synchronization with the rising edge of the first internal clock ICLK and may pull-down drive the delay-locked clock DCLK in synchronization with the rising edge of the third internal clock IBCLK. A rising edge means a time at which a logic low level transitions to a logic high level, pull-up driving means driving to a logic high level, and pull-down driving means driving to a logic low level. The clock delay circuit 23 may drive the delay-locked clock DCLK in response to the second internal clock QCLK and the fourth internal clock QBCLK in the case where the logic level combination of the phase control signal PH<0:1> is ‘10.’ The case where the logic level combination of the phase control signal PH<0:1> is ‘10’ means that the first bit PH<0> of the phase control signal PH<0:1> is at a logic high level and the second bit PH<1> of the phase control signal PH<0:1> is at a logic low level. In the case where the logic level combination of the phase control signal PH<0:1> is ‘10,’ the clock delay circuit 23 may pull-up drive the delay-locked clock DCLK in synchronization with the rising edge of the second internal clock QCLK and may pull-down drive the delay-locked clock DCLK in synchronization with the rising edge of the fourth internal clock QBCLK. The clock delay circuit 23 may drive the delay-locked clock DCLK in response to the third internal clock IBCLK and the first internal clock ICLK in the case where the logic level combination of the phase control signal PH<0:1> is ‘11.’ The case where the logic level combination of the phase control signal PH<0:1> is ‘11’ means that all of the bits included in the phase control signal PH<0:1> are at logic high levels. In the case where the logic level combination of the phase control signal PH<0:1> is ‘11,’ the clock delay circuit 23 may pull-up drive the delay-locked clock DCLK in synchronization with the rising edge of the third internal clock IBCLK and may pull-down drive the delay-locked clock DCLK in synchronization with the rising edge of the first internal clock ICLK. The clock delay circuit 23 may drive the delay-locked clock DCLK in response to the fourth internal clock QBCLK and the second internal clock QCLK in the case where the logic level combination of the phase control signal PH<0:1> is ‘01.’ The case where the logic level combination of the phase control signal PH<0:1> is ‘01’ means that the first bit PH<0> of the phase control signal PH<0:1> is at a logic low level and the second bit PH<1> of the phase control signal PH<0:1> is at a logic high level. In the case where the logic level combination of the phase control signal PH<0:1> is ‘01,’ the clock delay circuit 23 may pull-up drive the delay-locked clock DCLK in synchronization with the rising edge of the fourth internal clock QBCLK and may pull-down drive the delay-locked clock DCLK in synchronization with the rising edge of the second internal clock QCLK.

The clock replication delay circuit 24 may delay the delay-locked clock DCLK by a second delay period D2 and thereby generate a feedback clock FCLK. The second delay period D2 may be set to a value modeled by a time that is taken for the delay-locked clock DCLK to reach the data transmission circuit 4 from the clock delay circuit 23.

The phase control signal generation circuit 25 may generate the phase control signal PH<0:1> by comparing the feedback clock FCLK and the first internal clock ICLK. The phase control signal generation circuit 25 may adjust the phase control signal PH<0:1> to increase the first delay period D1 of the clock delay circuit 23 in the case where the phase of the first internal clock ICLK is earlier than the phase of the feedback clock FCLK. In the present embodiment, as the logic level combination of the phase control signal PH<0:1> changes in the sequence of ‘00,’ ‘10,’ ‘11,’ ‘01,’ and ‘00,’ the first delay period D1 of the clock delay circuit 23 may be increased. For example, as the logic level combination of the phase control signal PH<0:1> is adjusted from ‘00’ to ‘10,’ the first delay period D1 of the clock delay circuit 23 may be increased by a period corresponding to the half cycle of the clock CLK, and as the logic level combination of the phase control signal PH<0:1> is adjusted from ‘00’ to ‘11,’ the first delay period D1 of the clock delay circuit 23 may be increased by a period corresponding to one cycle of the clock CLK.

Referring to FIG. 3, the clock delay circuit 23 may include a current supply circuit 231, a current discharge circuit 232, and a clock driving circuit 233.

The current supply circuit 231 may include resistor elements R21 and R22. The resistor element R21 may be coupled between a power supply voltage VDD and a node nd21. The resistor element R22 may be coupled between the power supply voltage VDD and a node nd22. The current supply circuit 231 may supply a current, which is determined by the power supply voltage VDD and the resistor element R21, to the node nd21 from the power supply voltage VDD. The current supply circuit 231 may supply a current, which is determined by the power supply voltage VDD and the resistor element R22, to the node nd22 from the power supply voltage VDD.

The current discharge circuit 232 may include inverters IV21 and IV22; NMOS transistors N21, N22, N23, and N24; a first constant current source S21; and a second constant current source S22. The inverter IV21 may invert the first bit PH<0> of the phase control signal PH<0:1> and output an output signal. The inverter IV22 may invert the second bit PH<1> of the phase control signal PH<0:1> and output an output signal. The NMOS transistor N21 may be coupled between a node nd23 and a node nd27 and be turned on in response to the first bit PH<0> of the phase control signal PH<0:1>. The NMOS transistor N22 may be coupled between a node nd24 and the node nd27 and be turned on in response to the output signal of the inverter IV21. The NMOS transistor N23 may be coupled between a node nd25 and a node nd28 and be turned on in response to the second bit PH<1> of the phase control signal PH<0:1>. The NMOS transistor N24 may be coupled between a node nd26 and the node nd28 and be turned on in response to the output signal of the inverter IV22. The first constant current source S21 may be coupled between the node nd27 and a ground voltage VSS. The current amount of the first constant current source S21 may be set to αI. The second constant current source S22 may be coupled between the node nd28 and the ground voltage VSS. The current amount of the second constant current source S22 may be set to (1−α)I. The current discharge circuit 232 may selectively discharge a current from the nodes nd23, nd24, nd25, and nd26 depending on the logic level combination of the phase control signal PH<0:1>.

The clock driving circuit 233 may include NMOS transistors N231, N232, N233, N234, N235, N236, N237, and N238. The NMOS transistor N231 may be coupled between the node nd21 and the node nd23 and be turned on in response to the first internal clock ICLK. The NMOS transistor N232 may be coupled between the node nd22 and the node nd23 and be turned on in response to the third internal clock IBCLK. The NMOS transistor N233 may be coupled between the node nd21 and the node nd24 and be turned on in response to the third internal clock IBCLK. The NMOS transistor N234 may be coupled between the node nd22 and the node nd24 and be turned on in response to the first internal clock ICLK. The NMOS transistor N235 may be coupled between the node nd21 and the node nd25 and be turned on in response to the second internal clock QCLK. The NMOS transistor N236 may be coupled between the node nd22 and the node nd25 and be turned on in response to the fourth internal clock QBCLK. The NMOS transistor N237 may be coupled between the node nd21 and the node nd26 and be turned on in response to the fourth internal clock QBCLK. The NMOS transistor N238 may be coupled between the node nd22 and the node nd26 and be turned on in response to the second internal clock QCLK.

In a state in which the first bit PH<0> of the phase control signal PH<0:1> is set to a logic high level and thus the NMOS transistor N21 is turned on, the clock driving circuit 233 may pull-down drive the delay-locked clock DCLK which is outputted to the node nd21, in synchronization with the rising edge of the first internal clock ICLK. In the state in which the first bit PH<0> of the phase control signal PH<0:1> is set to a logic high level and thus the NMOS transistor N21 is turned on, the clock driving circuit 233 may pull-up drive the delay-locked clock DCLK by pull-down driving an inverted delay-locked clock DCLKB which is outputted to the node nd22, in synchronization with the rising edge of the third internal clock IBCLK. In a state in which the first bit PH<0> of the phase control signal PH<0:1> is set to a logic low level and thus the NMOS transistor N22 is turned on, the clock driving circuit 233 may pull-down drive the delay-locked clock DCLK which is outputted to the node nd21, in synchronization with the rising edge of the third internal clock IBCLK. In the state in which the first bit PH<0> of the phase control signal PH<0:1> is set to a logic low level and thus the NMOS transistor N22 is turned on, the clock driving circuit 233 may pull-up drive the delay-locked clock DCLK by pull-down driving the inverted delay-locked clock DCLKB which is outputted to the node nd22, in synchronization with the rising edge of the first internal clock ICLK.

In a state in which the second bit PH<1> of the phase control signal PH<0:1> is set to a logic high level and thus the NMOS transistor N23 is turned on, the clock driving circuit 233 may pull-down drive the delay-locked clock DCLK which is outputted to the node nd21, in synchronization with the rising edge of the second internal clock QCLK. In the state in which the second bit PH<1> of the phase control signal PH<0:1> is set to a logic high level and thus the NMOS transistor N23 is turned on, the clock driving circuit 233 may pull-up drive the delay-locked clock DCLK by pull-down driving the inverted delay-locked clock DCLKB which is outputted to the node nd22, in synchronization with the rising edge of the fourth internal clock QBCLK. In a state in which the second bit PH<1> of the phase control signal PH<0:1> is set to a logic low level and thus the NMOS transistor N24 is turned on, the clock driving circuit 233 may pull-down drive the delay-locked clock DCLK which is outputted to the node nd21, in synchronization with the rising edge of the fourth internal clock QBCLK. In the state in which the second bit PH<1> of the phase control signal PH<0:1> is set to a logic low level and thus the NMOS transistor N24 is turned on, the clock driving circuit 233 may pull-up drive the delay-locked clock DCLK by pull-down driving the inverted delay-locked clock DCLKB which is outputted to the node nd22, in synchronization with the rising edge of the second internal clock QCLK.

As the clock delay circuit 23 is realized by a phase rotator, even though a delay period for delaying the first internal clock ICLK increases, it is not necessary to add a delay circuit and thus it is possible to prevent power and area consumption from increasing.

The operation of the clock delay circuit 23 shown in FIG. 3 is described below with reference to FIGS. 4 and 5.

As shown in FIG. 4, in a state in which α is set to ‘1’ and the logic level combination of the phase control signal PH<0:1> is set to ‘00,’ the NMOS transistor N22 is turned on, and the delay-locked clock DCLK is pull-up driven in synchronization with the rising edge of the first internal clock ICLK and is pull-down driven in synchronization with the rising edge of the third internal clock IBCLK. In the state in which α is set to ‘1’ and the logic level combination of the phase control signal PH<0:1> is set to ‘00,’ the delay-locked clock DCLK is generated as the same waveform as the first internal clock ICLK.

In a state in which α is set to ‘0’ and the logic level combination of the phase control signal PH<0:1> is set to ‘10,’ the NMOS transistor N24 is turned on, and the delay-locked clock DCLK is pull-up driven in synchronization with the rising edge of the second internal clock QCLK and is pull-down driven in synchronization with the rising edge of the fourth internal clock QBCLK. In the state in which α is set to ‘0’ and the logic level combination of the phase control signal PH<0:1> is set to ‘10,’ the delay-locked clock DCLK is generated as the same waveform as the second internal clock QCLK.

In a state in which α is set to ‘1’ and the logic level combination of the phase control signal PH<0:1> is set to ‘11,’ the NMOS transistor N21 is turned on, and the delay-locked clock DCLK is pull-up driven in synchronization with the rising edge of the third internal clock IBCLK and is pull-down driven in synchronization with the rising edge of the first internal clock ICLK. In the state in which α is set to ‘1’ and the logic level combination of the phase control signal PH<0:1> is set to ‘11,’ the delay-locked clock DCLK is generated as the same waveform as the third internal clock IBCLK.

In a state in which α is set to ‘0’ and the logic level combination of the phase control signal PH<0:1> is set to ‘01,’ the NMOS transistor N23 is turned on, and the delay-locked clock DCLK is pull-up driven in synchronization with the rising edge of the fourth internal clock QBCLK and is pull-down driven in synchronization with the rising edge of the second internal clock QCLK. In the state in which α is set to ‘0’ and the logic level combination of the phase control signal PH<0:1> is set to ‘01,’ the delay-locked clock DCLK is generated as the same waveform as the fourth internal clock QBCLK.

Referring to FIG. 5, it may be seen that, in the state in which α is set to ‘1’ and the logic level combination of the phase control signal PH<0:1> is set to ‘00,’ the delay-locked clock DCLK is generated as the same waveform as the first internal clock ICLK. It may be seen that, in the state in which α is set to ‘0’ and the logic level combination of the phase control signal PH<0:1> is set to ‘10,’ the delay-locked clock DCLK is generated as the same waveform as the second internal clock QCLK. It may be seen that, in the state in which α is set to ‘1’ and the logic level combination of the phase control signal PH<0:1> is set to ‘11,’ the delay-locked clock DCLK is generated as the same waveform as the third internal clock IBCLK. It may be seen that, in the state in which α is set to ‘0’ and the logic level combination of the phase control signal PH<0:1> is set to ‘01,’ the delay-locked clock DCLK is generated as the same waveform as the fourth internal clock QBCLK.

Referring to FIG. 6, the latency command generation circuit 3 may include a shifting control signal generation circuit 31, a command pad 32, a command decoder 33, a command delay circuit 34, and a shift register 35.

The shifting control signal generation circuit 31 may include a reset delay circuit 311, a reset replication delay circuit 312, a counter 313, and a subtractor 314. The shifting control signal generation circuit 31 may generate a first delayed reset signal RSTd1 by delaying the reset signal RST by a first delay period D1 in response to the first internal clock ICLK, the second internal clock QCLK, the third internal clock IBCLK, the fourth internal clock QBCLK, the phase control signal PH<0:1>, and the delay-locked clock DCLK. The first delay period D1 may be set to be the same as the first delay period D1 of the clock delay circuit 23 (see FIG. 2). The shifting control signal generation circuit 31 may generate a second delayed reset signal RSTd2 by delaying the first delayed reset signal RSTd1 by a second delay period D2. The second delay period D2 may be set to be the same as the second delay period D2 of the clock replication delay circuit 24 (see FIG. 2). The shifting control signal generation circuit 31 may generate a shifting control signal S_CNT including information on a period that is obtained by subtracting the first delay period D1 and the second delay period D2 from a period set by the latency signal CL. The reset signal RST may be enabled to a logic high level for the initialization operation of the semiconductor device 1. The period set by the latency signal CL may be set to a period from a time when the command CMD is inputted to a time when data is outputted, that is, a period corresponding to a latency. A detailed configuration and operation of the shifting control signal generation circuit 31 is described later with reference to FIG. 7.

The reset delay circuit 311 may generate the first delayed reset signal RSTd1 by delaying the reset signal RST by the first delay period D1 in response to the first internal clock ICLK, the second internal clock QCLK, the third internal clock IBCLK, the fourth internal clock QBCLK, the phase control signal PH<0:1>, and the delay-locked clock DCLK. The first delay period D1 may be set to be the same as the first delay period D1 of the clock delay circuit 23 (see FIG. 2). The reset delay circuit 311 may output the first delayed reset signal RSTd1 by latching the reset signal RST sequentially by clocks selected from among the first internal clock ICLK, the second internal clock QCLK, the third internal clock IBCLK, and the fourth internal clock QBCLK, depending on the logic level combination of the phase control signal PH<0:1>, and by then latching the sequentially latched reset signal RST in synchronization with the delay-locked clock DCLK. As the reset delay circuit 311 is realized by an equivalent circuit of a phase rotator, even though a delay period for delaying the reset signal RST increases, it is not necessary to add a delay circuit, and thus it is possible to prevent power and area consumption from increasing. A detailed configuration and operation of the reset delay circuit 311 is described later with reference to FIGS. 8 to 12.

The reset replication delay circuit 312 may generate the second delayed reset signal RSTd2 by delaying the first delayed reset signal RSTd1 by the second delay period D2. The second delay period D2 may be set to be the same as the second delay period D2 of the clock replication delay circuit 24 (see FIG. 2). The counter 313 may generate a counting number NM by detecting that a period obtained by summing the first delay period D1 and the second delay period D2 corresponds to which number of cycles of the clock CLK.

The counter 313 may generate the counting number NM which is set to 3, in the case where a period obtained by summing the first delay period D1 and the second delay period D2 corresponds to three cycles of the clock CLK. The subtractor 314 may generate the shifting control signal S_CNT including information on a period that is obtained by subtracting a period corresponding to the counting number NM from the period set by the latency signal CL. In the case where the latency signal CL includes information corresponding to eight cycles of the clock CLK and the counting number NM includes information corresponding to three cycles of the clock CLK, the shifting control signal S_CNT may be generated to include information corresponding to five cycles of the clock CLK that is obtained by subtracting a period corresponding to the information of the counting number NM from a period corresponding to the information of the latency signal CL.

The command decoder 33 may receive the command CMD through the command pad 32. The command decoder 33 may decode the command CMD and thereby generate the internal command ICMD. In the present embodiment, the internal command ICMD may be set as a read command which is generated to perform a read operation in which the data DATA stored in the semiconductor device 1 is outputted as the transmission data TDQ. The command CMD may be realized as a signal which includes a plurality of bits, depending on an embodiment.

The command delay circuit 34 may generate the delayed command DCMD by delaying the internal command ICMD by a first delay period D1 in response to the first internal clock ICLK, the second internal clock QCLK, the third internal clock IBCLK, the fourth internal clock QBCLK, the phase control signal PH<0:1>, and the delay-locked clock DCLK. The first delay period D1 may be set to be the same as the first delay period D1 of the reset delay circuit 311. The command delay circuit 34 may output the delayed command DCMD by latching the internal command ICMD sequentially by clocks selected from among the first internal clock ICLK, the second internal clock QCLK, the third internal clock IBCLK, and the fourth internal clock QBCLK, depending on the logic level combination of the phase control signal PH<0:1>, and by then latching the sequentially latched internal command ICMD in synchronization with the delay-locked clock DCLK. As the command delay circuit 34 is realized to include an equivalent circuit of a phase rotator, even though a delay period for delaying the internal command ICMD increases, it is not necessary to add a delay circuit and thus it is possible to prevent power and area consumption from increasing. A detailed configuration and operation of the command delay circuit 34 is described later with reference to FIGS. 13 to 40.

The shift register 35 may shift the delayed command DCMD in response to the delay-locked clock DCLK and thereby generate the latency command LCMD. A period in which the delayed command DCMD is shifted in the shift register 35 to generate the latency command LCMD may be set to a period corresponding to the information included in the shifting control signal S_CNT. That is to say, the shift register 35 may generate the latency command LCMD by shifting the delayed command DCMD by the period corresponding to the information included in the shifting control signal S_CNT.

A detailed operation of the shifting control signal generation circuit 31 is described hereunder with reference to FIG. 7.

As shown in FIG. 7, in the case where the first delayed reset signal RSTd1 is generated by delaying the reset signal RST by the first delay period D1 set to a period corresponding to one cycle of the clock CLK and the second delayed reset signal RSTd2 is generated by delaying the first delayed reset signal RSTd1 by a period corresponding to two cycles of the clock CLK, the counting number NM may be generated to include information corresponding to three cycles of the clock CLK. The counting number NM may include bits which have a logic level combination of ‘011’ corresponding to 3. A scheme in which the counting number NM includes information may be set variously depending on an embodiment. The shifting control signal S_CNT may include information corresponding to a period obtained by subtracting a period corresponding to the information of the counting number NM from a period corresponding to the information of the latency signal CL.

Referring to FIG. 8, the reset delay circuit 311 may include a first clock latch 3111, a second clock latch 3112, a third clock latch 3113, a fourth clock latch 3114, a fifth clock latch 3115, a sixth clock latch 3116, a seventh clock latch 3117, a clock selector 3118, and a reset signal output latch 3119.

The first clock latch 3111 may latch the reset signal RST in synchronization with the first internal clock ICLK and output the latched reset signal RST as a first latched reset signal RSTL1. The second clock latch 3112 may latch the first latched reset signal RSTL1 in synchronization with the first internal clock ICLK and output the latched first latched reset signal RSTL1 as a second latched reset signal RSTL2. The third clock latch 3113 may latch the first latched reset signal RSTL1 in synchronization with the third internal clock IBCLK and output the latched first latched reset signal RSTL1 as a third latched reset signal RSTL3. The fourth clock latch 3114 may latch the third latched reset signal RSTL3 in synchronization with the second internal clock QCLK and output the latched third latched reset signal RSTL3 as a fourth latched reset signal RSTL4. The fifth clock latch 3115 may latch the first latched reset signal RSTL1 in synchronization with the fourth internal clock QBCLK and output the latched first latched reset signal RSTL1 as a fifth latched reset signal RSTL5. The sixth clock latch 3116 may latch the fifth latched reset signal RSTL5 in synchronization with the third internal clock IBCLK and output the latched fifth latched reset signal RSTL5 as a sixth latched reset signal RSTL6. The seventh clock latch 3117 may latch the fifth latched reset signal RSTL5 in synchronization with the fourth internal clock QBCLK and output the latched fifth latched reset signal RSTL5 as a seventh latched reset signal RSTL7. In the present embodiment, each of the first clock latch 3111, the second clock latch 3112, the third clock latch 3113, the fourth clock latch 3114, the fifth clock latch 3115, the sixth clock latch 3116, and the seventh clock latch 3117 may be realized by a D flip-flop.

The clock selector 3118 may generate a selected reset signal RSTS from the second latched reset signal RSTL2, the fourth latch reset signal RSTL4, the sixth latched reset signal RSTL6, and the seventh latched reset signal RSTL7 in response to the phase control signal PH<0:1>. The clock selector 3118 may output the selected reset signal RSTS by selecting one from among the second latched reset signal RSTL2, the fourth latch reset signal RSTL4, the sixth latched reset signal RSTL6, and the seventh latched reset signal RSTL7 depending on the logic level combination of the phase control signal PH<0:1>. The clock selector 3118 may output the second latched reset signal RSTL2 as the selected reset signal RSTS in the case where the logic level combination of the phase control signal PH<0:1> is ‘11.’ The clock selector 3118 may output the selected reset signal RSTS by selecting the fourth latched reset signal RSTL4 in the case where the logic level combination of the phase control signal PH<0:1> is ‘01.’ The clock selector 3118 may output the selected reset signal RSTS by selecting the sixth latched reset signal RSTL6 in the case where the logic level combination of the phase control signal PH<0:1> is ‘00.’ The clock selector 3118 may output the selected reset signal RSTS by selecting the seventh latched reset signal RSTL7 in the case where the logic level combination of the phase control signal PH<0:1> is ‘10.’ The reset signal output latch 3119 may latch the selected reset signal RSTS in synchronization with the delay-locked clock DCLK, and output the latched selected reset signal RSTS as the first delayed reset signal RSTd1.

In the case where the logic level combination of the phase control signal PH<0:1> is ‘11,’ the reset delay circuit 311 may generate the selected reset signal RSTS by latching the reset signal RST in synchronization with the first internal clock ICLK and then latching the latched reset signal RST in synchronization with the first internal clock ICLK, and may generate the first delayed reset signal RSTd1 by latching the selected reset signal RSTS in synchronization with the delay-locked clock DCLK. In the case where the logic level combination of the phase control signal PH<0:1> is ‘01,’ the reset delay circuit 311 may generate the selected reset signal RSTS by latching the reset signal RST sequentially in synchronization with the first internal clock ICLK, the third internal clock IBCLK, and the second internal clock QCLK, and may generate the first delayed reset signal RSTd1 by latching the selected reset signal RSTS in synchronization with the delay-locked clock DCLK. In the case where the logic level combination of the phase control signal PH<0:1> is ‘00,’ the reset delay circuit 311 may generate the selected reset signal RSTS by latching the reset signal RST sequentially in synchronization with the first internal clock ICLK, the fourth internal clock QBCLK, and the third internal clock IBCLK, and may generate the first delayed reset signal RSTd1 by latching the selected reset signal RSTS in synchronization with the delay-locked clock DCLK. In the case where the logic level combination of the phase control signal PH<0:1> is ‘10,’ the reset delay circuit 311 may generate the selected reset signal RSTS by latching the reset signal RST sequentially in synchronization with the first internal clock ICLK, the fourth internal clock QBCLK and the fourth internal clock QBCLK, and may generate the first delayed reset signal RSTd1 by latching the selected reset signal RSTS in synchronization with the delay-locked clock DCLK.

Hereunder, the operation of the reset delay circuit 311 is described in detail with reference to FIGS. 9 to 12.

As shown in FIG. 9, when the reset signal RST is generated at a time T11 a, the first latched reset signal RSTL1 is generated at the time T11 a in synchronization with the first internal clock ICLK. The second latched reset signal RSTL2 is generated in synchronization with the first internal clock ICLK, the fourth latched reset signal RSTL4 is generated in synchronization with the second internal clock QCLK, the sixth latched reset signal RSTL6 is generated in synchronization with the third internal clock IBCLK, and the seventh latched reset signal RSTL7 is generated in synchronization with the fourth internal clock QBCLK. In the case where the logic level combination of the phase control signal PH<0:1> is ‘11,’ the second latched reset signal RSTL2 is selected and outputted as the selected reset signal RSTS at a time T12 a. At a time T13 a, the selected reset signal RSTS is latched in synchronization with the delay-locked clock DCLK and is outputted as the first delayed reset signal RSTd1. In the case where the logic level combination of the phase control signal PH<0:1> is ‘11,’ the first delay period D1 of the reset delay circuit 311 is set as a period from the time T11 a to the time T13 a.

As shown in FIG. 10, when the reset signal RST is generated at a time T11 b, the first latched reset signal RSTL1 is generated at the time T11 b in synchronization with the first internal clock ICLK. The second latched reset signal RSTL2 is generated in synchronization with the first internal clock ICLK, the fourth latched reset signal RSTL4 is generated in synchronization with the second internal clock QCLK, the sixth latched reset signal RSTL6 is generated in synchronization with the third internal clock IBCLK, and the seventh latched reset signal RSTL7 is generated in synchronization with the fourth internal clock QBCLK. In the case where the logic level combination of the phase control signal PH<0:1> is ‘01,’ the fourth latched reset signal RSTL4 is selected and outputted as the selected reset signal RSTS at a time T12 b. At a time T13 b, the selected reset signal RSTS is latched in synchronization with the delay-locked clock DCLK and is outputted as the first delayed reset signal RSTd1. In the case where the logic level combination of the phase control signal PH<0:1> is ‘01,’ the first delay period D1 of the reset delay circuit 311 is set as a period from the time T11 b to the time T13 b.

As shown in FIG. 11, when the reset signal RST is generated at a time T11 c, the first latched reset signal RSTL1 is generated at the time T11 c in synchronization with the first internal clock ICLK. The second latched reset signal RSTL2 is generated in synchronization with the first internal clock ICLK, the fourth latched reset signal RSTL4 is generated in synchronization with the second internal clock QCLK, the sixth latched reset signal RSTL6 is generated in synchronization with the third internal clock IBCLK, and the seventh latched reset signal RSTL7 is generated in synchronization with the fourth internal clock QBCLK. In the case where the logic level combination of the phase control signal PH<0:1> is ‘00,’ the sixth latched reset signal RSTL6 is selected and outputted as the selected reset signal RSTS at a time T12 c. At a time T13 c, the selected reset signal RSTS is latched in synchronization with the delay-locked clock DCLK and is outputted as the first delayed reset signal RSTd1. In the case where the logic level combination of the phase control signal PH<0:1> is ‘00,’ the first delay period D1 of the reset delay circuit 311 is set as a period from the time T11 c to the time T13 c.

As shown in FIG. 12, when the reset signal RST is generated at a time T11 d, the first latched reset signal RSTL1 is generated at the time T11 d in synchronization with the first internal clock ICLK. The second latched reset signal RSTL2 is generated in synchronization with the first internal clock ICLK, the fourth latched reset signal RSTL4 is generated in synchronization with the second internal clock QCLK, the sixth latched reset signal RSTL6 is generated in synchronization with the third internal clock IBCLK, and the seventh latched reset signal RSTL7 is generated in synchronization with the fourth internal clock QBCLK. In the case where the logic level combination of the phase control signal PH<0:1> is ‘10,’ the seventh latched reset signal RSTL7 is selected and outputted as the selected reset signal RSTS at a time T12 d. At a time T13 d, the selected reset signal RSTS is latched in synchronization with the delay-locked clock DCLK and is outputted as the first delayed reset signal RSTd1. In the case where the logic level combination of the phase control signal PH<0:1> is ‘10,’ the first delay period D1 of the reset delay circuit 311 is set as a period from the time T11 d to the time T13 d.

Summarizing these, it may be seen that each time the logic level combination of the phase control signal PH<0:1> changes in the sequence of ‘11,’ ‘01,’ ‘00,’ and ‘10,’ the first delay period D1 of the reset delay circuit 311 increases by a period corresponding to a quarter (¼) cycle of the first internal clock ICLK (a period corresponding to a half (½) cycle of the clock CLK).

Referring to FIG. 13, a command delay circuit 34 a in accordance with an embodiment may include a first command latch 341, a second command latch 342, a third command latch 343, a fourth command latch 344, a fifth command latch 345, a sixth command latch 346, a seventh command latch 347, a command selector 348, and a command output latch 349.

The first command latch 341 may latch the internal command ICMD in synchronization with the first internal clock ICLK and output the latched internal command ICMD as a first latched command ICMDL1. The second command latch 342 may latch the first latched command ICMDL1 in synchronization with the first internal clock ICLK and output the latched first latched command ICMDL1 as a second latched command ICMDL2. The third command latch 343 may latch the first latched command ICMDL1 in synchronization with the third internal clock IBCLK and output the latched first latched command ICMDL1 as a third latched command ICMDL3. The fourth command latch 344 may latch the third latched command ICMDL3 in synchronization with the second internal clock QCLK and output the latched third latched command ICMDL3 as a fourth latched command ICMDL4. The fifth command latch 345 may latch the first latched command ICMDL1 in synchronization with the fourth internal clock QBCLK and output the latched first latched command ICMDL1 as a fifth latched command ICMDL5. The sixth command latch 346 may latch the fifth latched command ICMDL5 in synchronization with the third internal clock IBCLK and output the latched fifth latched command ICMDL5 as a sixth latched command ICMDL6. The seventh command latch 347 may latch the fifth latched command ICMDL5 in synchronization with the fourth internal clock QBCLK and output the latched fifth latched command ICMDL5 as a seventh latched command ICMDL7. In the present embodiment, each of the first command latch 341, the second command latch 342, the third command latch 343, the fourth command latch 344, the fifth command latch 345, the sixth command latch 346, and the seventh command latch 347 may be realized by a D flip-flop.

The command selector 348 may generate a selected command ICMDS from the second latched command ICMDL2, the fourth latched command ICMDL4, the sixth latched command ICMDL6, and the seventh latched command ICMDL7 in response to the phase control signal PH<0:1>. The command selector 348 may output the selected command ICMDS by selecting one from among the second latched command ICMDL2, the fourth latched command ICMDL4, the sixth latched command ICMDL6, and the seventh latched command ICMDL7 depending on the logic level combination of the phase control signal PH<0:1>. The command selector 348 may output the second latched command ICMDL2 as the selected command ICMDS in the case where the logic level combination of the phase control signal PH<0:1> is ‘11.’ The command selector 348 may output the selected command ICMDS by selecting the fourth latched command ICMDL4 in the case where the logic level combination of the phase control signal PH<0:1> is ‘01.’ The command selector 348 may output the selected command ICMDS by selecting the sixth latched command ICMDL6 in the case where the logic level combination of the phase control signal PH<0:1> is ‘00.’ The command selector 348 may output the selected command ICMDS by selecting the seventh latched command ICMDL7 in the case where the logic level combination of the phase control signal PH<0:1> is ‘10.’ The command output latch 349 may latch the selected command ICMDS in synchronization with the delay-locked clock DCLK and output the latched selected command ICMDS as the delayed command DCMD.

In the case where the logic level combination of the phase control signal PH<0:1> is ‘11,’ the command delay circuit 34 a may generate the selected command ICMDS by latching the internal command ICMD in synchronization with the first internal clock ICLK and then latching the latched internal command ICMD in synchronization with the first internal clock ICLK, and may generate the delayed command DCMD by latching the selected command ICMDS in synchronization with the delay-locked clock DCLK. In the case where the logic level combination of the phase control signal PH<0:1> is ‘01,’ the command delay circuit 34 a may generate the selected command ICMDS by latching the internal command ICMD sequentially in synchronization with the first internal clock ICLK, the third internal clock IBCLK, and the second internal clock QCLK, and may generate the delayed command DCMD by latching the selected command ICMDS in synchronization with the delay-locked clock DCLK. In the case where the logic level combination of the phase control signal PH<0:1> is ‘00,’ the command delay circuit 34 a may generate the selected command ICMDS by latching the internal command ICMD sequentially in synchronization with the first internal clock ICLK, the fourth internal clock QBCLK, and the third internal clock IBCLK, and may generate the delayed command DCMD by latching the selected command ICMDS in synchronization with the delay-locked clock DCLK. In the case where the logic level combination of the phase control signal PH<0:1> is ‘10,’ the command delay circuit 34 a may generate the selected command ICMDS by latching the internal command ICMD sequentially in synchronization with the first internal clock ICLK, the fourth internal clock QBCLK, and the fourth internal clock QBCLK, and may generate the delayed command DCMD by latching the selected command ICMDS in synchronization with the delay-locked clock DCLK.

Hereunder, the operation of the command delay circuit 34 a is described in detail with reference to FIGS. 14 to 17.

As shown in FIG. 14, when the internal command ICMD is generated at a time T21 a, the first latched command ICMDL1 is generated at the time T21 a in synchronization with the first internal clock ICLK. The second latched command ICMDL2 is generated in synchronization with the first internal clock ICLK, the fourth latched command ICMDL4 is generated in synchronization with the second internal clock QCLK, the sixth latched command ICMDL6 is generated in synchronization with the third internal clock IBCLK, and the seventh latched command ICMDL7 is generated in synchronization with the fourth internal clock QBCLK. In the case where the logic level combination of the phase control signal PH<0:1> is ‘11,’ the second latched command ICMDL2 is selected and outputted as the selected command ICMDS at a time T22 a. At a time T23 a, the selected command ICMDS is latched in synchronization with the delay-locked clock DCLK and is outputted as the delayed command DCMD. In the case where the logic level combination of the phase control signal PH<0:1> is ‘11,’ the first delay period D1 of the command delay circuit 34 a is set as a period from the time T21 a to the time T23 a.

As shown in FIG. 15, when the internal command ICMD is generated at a time T21 b, the first latched command ICMDL1 is generated at the time T21 b in synchronization with the first internal clock ICLK. The second latched command ICMDL2 is generated in synchronization with the first internal clock ICLK, the fourth latched command ICMDL4 is generated in synchronization with the second internal clock QCLK, the sixth latched command ICMDL6 is generated in synchronization with the third internal clock IBCLK, and the seventh latched command ICMDL7 is generated in synchronization with the fourth internal clock QBCLK. In the case where the logic level combination of the phase control signal PH<0:1> is ‘01,’ the fourth latched command ICMDL4 is selected and outputted as the selected command ICMDS at a time T22 b. At a time T23 b, the selected command ICMDS is latched in synchronization with the delay-locked clock DCLK and is outputted as the delayed command DCMD. In the case where the logic level combination of the phase control signal PH<0:1> is ‘01,’ the first delay period D1 of the command delay circuit 34 a is set as a period from the time T21 b to the time T23 b.

As shown in FIG. 16, when the internal command ICMD is generated at a time T21 c, the first latched command ICMDL1 is generated at the time T21 c in synchronization with the first internal clock ICLK. The second latched command ICMDL2 is generated in synchronization with the first internal clock ICLK, the fourth latched command ICMDL4 is generated in synchronization with the second internal clock QCLK, the sixth latched command ICMDL6 is generated in synchronization with the third internal clock IBCLK, and the seventh latched command ICMDL7 is generated in synchronization with the fourth internal clock QBCLK. In the case where the logic level combination of the phase control signal PH<0:1> is ‘00,’ the sixth latched command ICMDL6 is selected and outputted as the selected command ICMDS at a time T22 c. At a time T23 c, the selected command ICMDS is latched in synchronization with the delay-locked clock DCLK and is outputted as the delayed command DCMD. In the case where the logic level combination of the phase control signal PH<0:1> is ‘00,’ the first delay period D1 of the command delay circuit 34 a is set as a period from the time T21 c to the time T23 c.

As shown in FIG. 17, when the internal command ICMD is generated at a time T21 d, the first latched command ICMDL1 is generated at the time T21 d in synchronization with the first internal clock ICLK. The second latched command ICMDL2 is generated in synchronization with the first internal clock ICLK, the fourth latched command ICMDL4 is generated in synchronization with the second internal clock QCLK, the sixth latched command ICMDL6 is generated in synchronization with the third internal clock IBCLK, and the seventh latched command ICMDL7 is generated in synchronization with the fourth internal clock QBCLK. In the case where the logic level combination of the phase control signal PH<0:1> is ‘10,’ the seventh latched command ICMDL7 is selected and outputted as the selected command ICMDS at a time T22 d. At a time T23 d, the selected command ICMDS is latched in synchronization with the delay-locked clock DCLK and is outputted as the delayed command DCMD. In the case where the logic level combination of the phase control signal PH<0:1> is ‘10,’ the first delay period D1 of the command delay circuit 34 a is set as a period from the time T21 d to the time T23 d.

Summarizing these, it may be seen that each time the logic level combination of the phase control signal PH<0:1> changes in the sequence of ‘11,’ ‘01,’ ‘00,’ and ‘10,’ the first delay period D1 of the command delay circuit 34 a increases by a period corresponding to a quarter (¼) cycle of the first internal clock ICLK (a period corresponding to a half (½) cycle of the clock CLK).

Referring to FIG. 18, a command delay circuit 34 b in accordance with an embodiment may include a divider 51, a phase control signal delay circuit 52, a latch control pulse generation circuit 53, a correction code generation circuit 54, a command phase selection circuit 55, and a delay correction circuit 56.

The divider 51 may divide the delay-locked clock DCLK and thereby generate a divided delay clock DCLKV. The cycle of the divided delay clock DCLKV may be set to be K times larger than the cycle of the delay-locked clock DCLK. K may be set to a natural number of 2 or more.

The phase control signal delay circuit 52 may delay the phase control signal PH<0:1> in response to the divided delay clock DCLKV and thereby generate a first delayed phase control signal PHd1<0:1> and a second delayed phase control signal PHd2<0:1>. The phase control signal delay circuit 52 may generate the first delayed phase control signal PHd1<0:1> and the second delayed phase control signal PHd2<0:1> by latching the phase control signal PH<0:1> sequentially in synchronization with the divided delay clock DCLKV. A detailed configuration and operation of the phase control signal delay circuit 52 is described later with reference to FIG. 19.

The latch control pulse generation circuit 53 may generate a latch control pulse LCNT in response to the first internal clock ICLK, the divided delay clock DCLKV, the phase control signal PH<0:1>, and the first delayed phase control signal PHd1<0:1>. The latch control pulse generation circuit 53 may output the latch control pulse LCNT by latching a pulse, which is generated in the case where the phase control signal PH<0:1> and the first delayed phase control signal PHd1<0:1> are different, in synchronization with the divided delay clock DCLKV, and by then latching the latched pulse in synchronization with the first internal clock ICLK. In the case where the logic level combination of the phase control signal PH<0:1> changes, the phase control signal PH<0:1> and the first delayed phase control signal PHd1<0:1> may become different. A detailed configuration and operation of the latch control pulse generation circuit 53 is described later with reference to FIG. 20.

The correction code generation circuit 54 may generate a correction code DSR<1:4> in response to the latch control pulse LCNT, the divided delay clock DCLKV, a first latched command ICMDL1, the first delayed phase control signal PHd1<0:1>, and the second delayed phase control signal PHd2<0:1>. The correction code generation circuit 54 may generate the correction code DSR<1:4> by generating a shifting code (see the reference symbol SR<1:4> of FIG. 21) for which a logic level combination is set depending on the divided delay clock DCLKV, the first delayed phase control signal PHd1<0:1>, and the second delayed phase control signal PHd2<0:1> and by then latching the shifting code SR<1:4> sequentially by the latch control pulse LCNT and the first latched command ICMDL1.

In the case where the logic level combination of the second bit PHd1<1> of the first delayed phase control signal PHd1<0:1> and the second delayed phase control signal PHd2<0:1> is a first combination, the correction code generation circuit 54 may shift the correction code DSR<1:4> to increase the delay period of the delay correction circuit 56. For example, in the case where the correction code DSR<1:4> is shifted from ‘0001’ to ‘0010,’ the delay period of the delay correction circuit 56 is increased. The case where the logic level combination of the second bit PHd1<1> of the first delayed phase control signal PHd1<0:1> and the second delayed phase control signal PHd2<0:1> is the first combination means a state in which the second bit PHd1<1> of the first delayed phase control signal PHd1<0:1> is at a logic high level and the logic level combination of the second delayed phase control signal PHd2<0:1> is set to ‘10.’ The state in which the logic level combination of the second delayed phase control signal PHd2<0:1> is set to ‘10’ means a state in which the first bit PHd2<0> of the second delayed phase control signal PHd2<0:1> is at a logic high level and the second bit PHd2<1> of the second delayed phase control signal PHd2<0:1> is at a logic low level. In the case where the logic level combination of the phase control signal PH<0:1> changes from ‘11’ to ‘01,’ the logic level combination of the second bit PHd1<1> of the first delayed phase control signal PHd1<0:1> and the second delayed phase control signal PHd2<0:1> may be set to the first combination.

In the case where the logic level combination of the second bit PHd1<1> of the first delayed phase control signal PHd1<0:1> and the second delayed phase control signal PHd2<0:1> is a second combination, the correction code generation circuit 54 may shift the correction code DSR<1:4> to decrease the delay period of the delay correction circuit 56. For example, in the case where the correction code DSR<1:4> is shifted from ‘0010’ to ‘0001,’ the delay period of the delay correction circuit 56 is decreased. The case where the logic level combination of the second bit PHd1<1> of the first delayed phase control signal PHd1<0:1> and the second delayed phase control signal PHd2<0:1> is the second combination means a state in which the second bit PHd1<1> of the first delayed phase control signal PHd1<0:1> is at a logic low level and the logic level combination of the second delayed phase control signal PHd2<0:1> is set to ‘11.’ In the case where the logic level combination of the phase control signal PH<0:1> changes from ‘01’ to ‘11,’ the logic level combination of the second bit PHd1<1> of the first delayed phase control signal PHd1<0:1> and the second delayed phase control signal PHd2<0:1> may be set to the second combination. A detailed configuration and operation of the correction code generation circuit 54 is described later with reference to FIGS. 21 to 24.

The command phase selection circuit 55 may generate a phase selection command PSCMD by delaying the internal command ICMD in response to the first internal clock ICLK, the second internal clock QCLK, the third internal clock IBCLK, the fourth internal clock QBCLK, the first delayed phase control signal PHd1<0:1>, the latch control pulse LCNT, and the delay-locked clock DCLK. The command phase selection circuit 55 may output the phase selection command PSCMD by latching the internal command ICMD sequentially by clocks selected from among the first internal clock ICLK, the second internal clock QCLK, the third internal clock IBCLK, and the fourth internal clock QBCLK, depending on the logic level combination of the first delayed phase control signal PHd1<0:1>, and by then latching the sequentially latched internal command ICMD in synchronization with the delay-locked clock DCLK. A detailed configuration and operation of the command phase selection circuit 55 is described later with reference to FIG. 25.

The delay correction circuit 56 may delay the phase selection command PSCMD in response to the correction code DSR<1:4> and thereby generate the delayed command DCMD. The delay correction circuit 56 may generate the delayed command DCMD by delaying the phase selection command PSCMD by a delay period set depending on the logic level combination of the correction code DSR<1:4>. A detailed configuration and operation of the delay correction circuit 56 is described later with reference to FIGS. 26 to 30.

Referring to FIG. 19, the phase control signal delay circuit 52 may include a first phase latch 521 and a second phase latch 522. The first phase latch 521 may latch the phase control signal PH<0:1> in synchronization with the divided delay clock DCLKV, and output the latched phase control signal PH<0:1> as the first delayed phase control signal PHd1<0:1>. The second phase latch 522 may latch the first delayed phase control signal PHd1<0:1> in synchronization with the divided delay clock DCLKV, and output the latched first delayed phase control signal PHd1<0:1> as the second delayed phase control signal PHd2<0:1>.

Referring to FIG. 20, the latch control pulse generation circuit 53 may include a phase variable signal generation circuit 531, a first pulse latch 532, a second pulse latch 533, and a third pulse latch 534. The phase variable signal generation circuit 531 may include XNOR gates XNOR531 and XNOR532 and a NAND gate NAND53. The XNOR gate XNOR531 may receive the first bit PH<0> of the phase control signal PH<0:1> and the first bit PHd1<0> of the first delayed phase control signal PHd1<0:1>, and perform an XNOR logic operation. The XNOR gate XNOR531 may output a logic low level in the case where the first bit PH<0> of the phase control signal PH<0:1> and the first bit PHd1<0> of the first delayed phase control signal PHd1<0:1> have different logic levels. The XNOR gate XNOR532 may receive the second bit PH<1> of the phase control signal PH<0:1> and the second bit PHd1<1> of the first delayed phase control signal PHd1<0:1>, and perform an XNOR logic operation. The XNOR gate XNOR532 may output a logic low level in the case where the second bit PH<1> of the phase control signal PH<0:1> and the second bit PHd1<1> of the first delayed phase control signal PHd1<0:1> have different logic levels. The NAND gate NAND53 may receive the output signals of the XNOR gates XNOR531 and XNOR532 and perform a NAND logic operation. The NAND gate NAND53 may generate a phase variable signal PV which is enabled to a logic high level, in the case where at least one of the output signals of the XNOR gates XNOR531 and XNOR532 is at a logic low level. The first pulse latch 532 may latch the phase variable signal PV in synchronization with the divided delay clock DCLKV, and thereby output a divided control pulse DCNT. The second phase latch 533 may latch the divided control pulse DCNT in synchronization with the first internal clock ICLK, and output the latched divided control pulse DCNT. The third pulse latch 534 may latch the output signal of the second pulse latch 533 in synchronization with the first internal clock ICLK, and output the latched output signal of the second pulse latch 533, as the latch control pulse LCNT.

The latch control pulse generation circuit 53 may generate the phase variable signal PV, which is enabled to a logic high level, in the case where the phase control signal PH<0:1> and the first delayed phase control signal PHd1<0:1> are different. The latch control pulse generation circuit 53 may latch and output the phase variable signal PV in synchronization with the divided delay clock DCLKV. The latch control pulse generation circuit 53 may output the latch control pulse LCNT by latching the phase variable signal PV which is latched in synchronization with the divided delay clock DCLKV, in synchronization with the first internal clock ICLK.

Referring to FIG. 21, the correction code generation circuit 54 may include a code adjustment signal generation circuit 541, a shifting code generation circuit 542, a first code latch 543, and a second code latch 544.

The code adjustment signal generation circuit 541 may include AND gates AND541 and AND542 and a NOR gate NOR54. The AND gate AND541 may receive the first bit PHd2<0> of the second delayed phase control signal PHd2<0:1>, the second bit PHd1<1> of the first delayed phase control signal PHd1<0:1>, and an inverted signal of the second bit PHd2<1> of the second delayed phase control signal PHd2<0:1>, and perform an AND logic operation. The AND gate AND541 may generate a first code adjustment signal CRS1, which is enabled to a logic high level, in the case where the logic level combination of the second bit PHd1<1> of the first delayed phase control signal PHd1<0:1> and the second delayed phase control signal PHd2<0:1> is a first combination. The case where the logic level combination of the second bit PHd1<1> of the first delayed phase control signal PHd1<0:1> and the second delayed phase control signal PHd2<0:1> is the first combination means a state in which the second bit PHd1<1> of the first delayed phase control signal PHd1<0:1> is at a logic high level and the logic level combination of the second delayed phase control signal PHd2<0:1> is set to ‘10.’ The AND gate AND542 may receive the first bit PHd2<0> of the second delayed phase control signal PHd2<0:1>, an inverted signal of the second bit PHd1<1> of the first delayed phase control signal PHd1<0:1> and the second bit PHd2<1> of the second delayed phase control signal PHd2<0:1>, and perform an AND logic operation. The AND gate AND542 may generate a second code adjustment signal CRS2 which is enabled to a logic high level, in the case where the logic level combination of the second bit PHd1<1> of the first delayed phase control signal PHd1<0:1> and the second delayed phase control signal PHd2<0:1> is a second combination. The case where the logic level combination of the second bit PHd1<1> of the first delayed phase control signal PHd1<0:1> and the second delayed phase control signal PHd2<0:1> is the second combination means a state in which the second bit PHd1<1> of the first delayed phase control signal PHd1<0:1> is at a logic low level and the logic level combination of the second delayed phase control signal PHd2<0:1> is set to ‘11.’ The NOR gate NOR54 may receive the first code adjustment signal CRS1 and the second code adjustment signal CRS2, and perform a NOR logic operation. The NOR gate NOR54 may generate a third code adjustment signal CRS3 which is enabled to a logic high level, in the case where both the first code adjustment signal CRS1 and the second code adjustment signal CRS2 are disabled to logic low levels. The NOR gate NOR54 may generate the third code adjustment signal CRS3 which is disabled to a logic low level, in the case where the first code adjustment signal CRS1 or the second code adjustment signal CRS2 is enabled to a logic high level.

The shifting code generation circuit 542 may generate the shifting code SR<1:4> in response to the first code adjustment signal CRS1, the second code adjustment signal CRS2, and the third code adjustment signal CRS3. The shifting code generation circuit 542 may store the shifting code SR<1:4>, which has an initialized logic level combination. The initialized logic level combination of the shifting code SR<1:4> may be set variously depending on an embodiment. In the case where the first code adjustment signal CRS1 is enabled to a logic high level, the shifting code generation circuit 542 may shift the shifting code SR<1:4> to increase the delay period of the delay correction circuit 56. For example, in the case where the shifting code SR<1:4> is shifted from ‘0001’ to ‘0010,’ the delay period of the delay correction circuit 56 is increased. In the case where the second code adjustment signal CRS2 is enabled to a logic high level, the shifting code generation circuit 542 may shift the shifting code SR<1:4> to decrease the delay period of the delay correction circuit 56. For example, in the case where the shifting code SR<1:4> is shifted from ‘0010’ to ‘0001,’ the delay period of the delay correction circuit 56 is decreased. In the case where the third code adjustment signal CRS3 is enabled to a logic high level, the shifting code generation circuit 542 may generate the shifting code SR<1:4> which holds a constant logic level combination to allow the delay period of the delay correction circuit 56 to be constantly held. The first code latch 543 may latch the shifting code SR<1:4> in synchronization with the latch control pulse LCNT, and output the latched shifting code SR<1:4> as a latched shifting code LSR<1:4>. The second code latch 544 may latch the latched shifting code LSR<1:4> in synchronization with the first latched command ICMDL1, and output the latched latched shifting code LSR<1:4> as the correction code DSR<1:4>.

The operation of the correction code generation circuit 54 shown in FIG. 21 is described below with reference to FIGS. 22 to 24.

As shown in FIG. 22, in the case where the logic level combination of the phase control signal PH<0:1> changes from ‘11’ to ‘01’ at a time T31 a, the logic level combination of the first delayed phase control signal PHd1<0:1> changes from ‘11’ to ‘01’ at a time T32 a. The phase variable signal PV is enabled to a logic high level in synchronization with the divided delay clock DCLKV during a period from the time T31 a to the time T32 a in which the logic level combinations of the phase control signal PH<0:1> and the first delayed phase control signal PHd1<0:1> are different. Because the logic level combination of the second bit PHd1<1> of the first delayed phase control signal PHd1<0:1> and the second delayed phase control signal PHd2<0:1> is the first combination during the period from the time T31 a to the time T32 a, the first code adjustment signal CRS1 is enabled to a logic high level, and the second code adjustment signal CRS2 and the third code adjustment signal CRS3 are disabled to logic low levels. The divided control pulse DCNT is generated at the time T32 a as the phase variable signal PV is latched in synchronization with the divided delay clock DCLKV. At the time T32 a, the shifting code SR<1:4> is shifted from ‘0010’ to ‘0100’ in synchronization with the divided control pulse DCNT such that the delay period of the delay correction circuit 56 is increased. The correction code DSR<1:4> is generated as the shifting code SR<1:4> is latched sequentially in synchronization with the latch control pulse LCNT and the first latched command ICMDL1. The correction code DSR<1:4> is shifted from ‘0010’ to ‘0100’ at a time T33 a.

As shown in FIG. 23, in the case where the logic level combination of the phase control signal PH<0:1> changes from ‘01’ to ‘11’ at a time T31 b, the logic level combination of the first delayed phase control signal PHd1<0:1> changes from ‘01’ to ‘11’ at a time T32 b. The phase variable signal PV is enabled to a logic high level in synchronization with the divided delay clock DCLKV during a period from the time T31 b to the time T32 b in which the logic level combinations of the phase control signal PH<0:1> and the first delayed phase control signal PHd1<0:1> are different. Because the logic level combination of the second bit PHd1<1> of the first delayed phase control signal PHd1<0:1> and the second delayed phase control signal PHd2<0:1> is the second combination during the period from the time T31 b to the time T32 b, the second code adjustment signal CRS2 is enabled to a logic high level, and the first code adjustment signal CRS1 and the third code adjustment signal CRS3 are disabled to logic low levels. The divided control pulse DCNT is generated at the time T32 b as the phase variable signal PV is latched in synchronization with the divided delay clock DCLKV. At the time T32 b, the shifting code SR<1:4> is shifted from ‘0010’ to ‘0001’ in synchronization with the divided control pulse DCNT such that the delay period of the delay correction circuit 56 is decreased. The correction code DSR<1:4> is generated as the shifting code SR<1:4> is latched sequentially in synchronization with the latch control pulse LCNT and the first latched command ICMDL1. The correction code DSR<1:4> is shifted from ‘0010’ to ‘0001’ at a time T33 b.

As shown in FIG. 24, in the case where the logic level combination of the phase control signal PH<0:1> changes from ‘10’ to ‘11’ at a time T31 c, the logic level combination of the first delayed phase control signal PHd1<0:1> changes from ‘10’ to ‘11’ at a time T32 c. The phase variable signal PV is enabled to a logic high level in synchronization with the divided delay clock DCLKV during a period from the time T31 c to the time T32 c in which the logic level combinations of the phase control signal PH<0:1> and the first delayed phase control signal PHd1<0:1> are different. Because the logic level combination of the second bit PHd1<1> of the first delayed phase control signal PHd1<0:1> and the second delayed phase control signal PHd2<0:1> is not the first combination or the second combination during the period from the time T31 c to the time T32 c, the third code adjustment signal CRS3 is enabled to a logic high level, and the first code adjustment signal CRS1 and the second code adjustment signal CRS2 are disabled to logic low levels. The divided control pulse DCNT is generated at the time T32 c as the phase variable signal PV is latched in synchronization with the divided delay clock DCLKV. At the time T32 c, the shifting code SR<1:4> holds ‘0010’ in synchronization with the divided control pulse DCNT such that the delay period of the delay correction circuit 56 is held. The correction code DSR<1:4> is generated as the shifting code SR<1:4> is latched sequentially in synchronization with the latch control pulse LCNT and the first latched command ICMDL1. The correction code DSR<1:4> holds ‘0010.’

Referring to FIG. 25, the command phase selection circuit 55 in accordance with an embodiment may include a first command latch 611, a second command latch 612, a third command latch 613, a fourth command latch 614, a fifth command latch 615, a sixth command latch 616, a seventh command latch 617, a first phase control signal latch 618, a second phase control signal latch 619, a command selector 620, and a command output latch 621.

The first command latch 611 may latch the internal command ICMD in synchronization with the first internal clock ICLK and output the latched internal command ICMD as the first latched command ICMDL1. The second command latch 612 may latch the first latched command ICMDL1 in synchronization with the first internal clock ICLK and output the latched first latched command ICMDL1 as a second latched command ICMDL2. The third command latch 613 may latch the first latched command ICMDL1 in synchronization with the third internal clock IBCLK and output the latched first latched command ICMDL1 as a third latched command ICMDL3. The fourth command latch 614 may latch the third latched command ICMDL3 in synchronization with the second internal clock QCLK and output the latched third latched command ICMDL3 as a fourth latched command ICMDL4. The fifth command latch 615 may latch the first latched command ICMDL1 in synchronization with the fourth internal clock QBCLK and output the latched first latched command ICMDL1 as a fifth latched command ICMDL5. The sixth command latch 616 may latch the fifth latched command ICMDL5 in synchronization with the third internal clock IBCLK and output the latched fifth latched command ICMDL5 as a sixth latched command ICMDL6. The seventh command latch 617 may latch the fifth latched command ICMDL5 in synchronization with the fourth internal clock QBCLK and output the latched fifth latched command ICMDL5 as a seventh latched command ICMDL7. The first phase control signal latch 618 may latch the first delayed phase control signal PHd1<0:1> in synchronization with the latch control pulse LCNT, and output the latched first delayed phase control signal PHd1<0:1> as a first latched phase control signal PHL1<0:1>. The second phase control signal latch 619 may latch the first latched phase control signal PHL1<0:1> in synchronization with the first latched command ICMDL1, and output the latched first latched phase control signal PHL1<0:1> as a second latched phase control signal PHL2<0:1>. In the present embodiment, each of the first command latch 611, the second command latch 612, the third command latch 613, the fourth command latch 614, the fifth command latch 615, the sixth command latch 616, the seventh command latch 617, the first phase control signal latch 618 and the second phase control signal latch 619 may be realized by a D flip-flop.

The command selector 620 may generate a selected command ICMDSN from the second latched command ICMDL2, the fourth latched command ICMDL4, the sixth latched command ICMDL6 and the seventh latched command ICMDL7 in response to the second latched phase control signal PHL2<0:1>. The command selector 620 may output the selected command ICMDSN by selecting one from among the second latched command ICMDL2, the fourth latched command ICMDL4, the sixth latched command ICMDL6 and the seventh latched command ICMDL7 depending on the logic level combination of the second latched phase control signal PHL2<0:1>. The command selector 620 may output the second latched command ICMDL2 as the selected command ICMDSN in the case where the logic level combination of the second latched phase control signal PHL2<0:1> is ‘11.’ The command selector 620 may output the selected command ICMDSN by selecting the fourth latched command ICMDL4 in the case where the logic level combination of the second latched phase control signal PHL2<0:1> is ‘01.’ The command selector 620 may output the selected command ICMDSN by selecting the sixth latched command ICMDL6 in the case where the logic level combination of the second latched phase control signal PHL2<0:1> is ‘00.’ The command selector 620 may output the selected command ICMDSN by selecting the seventh latched command ICMDL7 in the case where the logic level combination of the second latched phase control signal PHL2<0:1> is ‘10.’ The command output latch 621 may latch the selected command ICMDSN in synchronization with the delay-locked clock DCLK, and output the latched selected command ICMDSN as the phase selection command PSCMD.

In the case where the logic level combination of the second latched phase control signal PHL2<0:1> is ‘11,’ the command phase selection circuit 55 may generate the phase selection command PSCMD by generating the selected command ICMDSN through latching the internal command ICMD in synchronization with the first internal clock ICLK and then latching the latched internal command ICMD in synchronization with the first internal clock ICLK and by then latching the selected command ICMDSN in synchronization with the delay-locked clock DCLK. In the case where the logic level combination of the second latched phase control signal PHL2<0:1> is ‘01,’ the command phase selection circuit 55 may generate the phase selection command PSCMD by generating the selected command ICMDSN through latching the internal command ICMD sequentially in synchronization with the first internal clock ICLK, the third internal clock IBCLK and the second internal clock QCLK and by then latching the selected command ICMDSN in synchronization with the delay-locked clock DCLK. In the case where the logic level combination of the second latched phase control signal PHL2<0:1> is ‘00,’ the command phase selection circuit 55 may generate the phase selection command PSCMD by generating the selected command ICMDSN through latching the internal command ICMD sequentially in synchronization with the first internal clock ICLK, the fourth internal clock QBCLK and the third internal clock IBCLK and by then latching the selected command ICMDSN in synchronization with the delay-locked clock DCLK. In the case where the logic level combination of the second latched phase control signal PHL2<0:1> is ‘10,’ the command phase selection circuit 55 may generate the phase selection command PSCMD by generating the selected command ICMDSN through latching the internal command ICMD sequentially in synchronization with the first internal clock ICLK, the fourth internal clock QBCLK and the fourth internal clock QBCLK and by then latching the selected command ICMDSN in synchronization with the delay-locked clock DCLK.

Referring to FIG. 26, the delay correction circuit 56 may include a first selector 71, a first selected command latch 72, a second selector 73, a second selected command latch 74, a third selector 75, a third selected command latch 76, a fourth selector 77, and a delayed command latch 78.

The first selector 71 may selectively output the phase selection command PSCMD or the ground voltage VSS in response to the first bit DSR<1> of the correction code DSR<1:4>. The first selector 71 may output the phase selection command PSCMD in the case where the first bit DSR<1> of the correction code DSR<1:4> is at a logic high level. The first selector 71 may output the ground voltage VSS in the case where the first bit DSR<1> of the correction code DSR<1:4> is at a logic low level. The first selected command latch 72 may latch the output signal of the first selector 71 in synchronization with the delay-locked clock DCLK, and output the latched output signal of the first selector 71 as a first selected command SC1.

The second selector 73 may selectively output the phase selection command PSCMD or the first selected command SC1 in response to the second bit DSR<2> of the correction code DSR<1:4>. The second selector 73 may output the phase selection command PSCMD in the case where the second bit DSR<2> of the correction code DSR<1:4> is at a logic high level. The second selector 73 may output the first selected command SC1 in the case where the second bit DSR<2> of the correction code DSR<1:4> is at a logic low level. The second selected command latch 74 may latch the output signal of the second selector 73 in synchronization with the delay-locked clock DCLK, and output the latched output signal of the second selector 73 as a second selected command SC2.

The third selector 75 may selectively output the phase selection command PSCMD or the second selected command SC2 in response to the third bit DSR<3> of the correction code DSR<1:4>. The third selector 75 may output the phase selection command PSCMD in the case where the third bit DSR<3> of the correction code DSR<1:4> is at a logic high level. The third selector 75 may output the second selected command SC2 in the case where the third bit DSR<3> of the correction code DSR<1:4> is at a logic low level. The third selected command latch 76 may latch the output signal of the third selector 75 in synchronization with the delay-locked clock DCLK, and output the latched output signal of the third selector 75 as a third selected command SC3.

The fourth selector 77 may selectively output the phase selection command PSCMD or the third selected command SC3 in response to the fourth bit DSR<4> of the correction code DSR<1:4>. The fourth selector 77 may output the phase selection command PSCMD in the case where the fourth bit DSR<4> of the correction code DSR<1:4> is at a logic high level. The fourth selector 77 may output the third selected command SC3 in the case where the fourth bit DSR<4> of the correction code DSR<1:4> is at a logic low level. The delayed command latch 78 may latch the output signal of the fourth selector 77 in synchronization with the delay-locked clock DCLK, and output the latched output signal of the fourth selector 77 as the delayed command DCMD.

The delay correction circuit 56 may generate the delayed command DCMD by delaying the phase selection command PSCMD by a delay period determined depending on the logic level combination of the correction code DSR<1:4>. In the case where the logic level combination of the correction code DSR<1:4> is ‘1000,’ the delayed command DCMD may be generated by delaying the phase selection command PSCMD through the first selector 71, the first selected command latch 72, the second selector 73, the second selected command latch 74, the third selector 75, the third selected command latch 76, the fourth selector 77, and the delayed command latch 78. The case where the logic level combination of the correction code DSR<1:4> is ‘1000’ means that the first bit DSR<1> of the correction code DSR<1:4> is at a logic high level and all of the second bit DSR<2> of the correction code DSR<1:4>, the third bit DSR<3> of the correction code DSR<1:4> and the fourth bit DSR<4> of the correction code DSR<1:4> are at logic low levels. In the case where the logic level combination of the correction code DSR<1:4> is ‘0100,’ the delayed command DCMD may be generated by delaying the phase selection command PSCMD through the second selector 73, the second selected command latch 74, the third selector 75, the third selected command latch 76, the fourth selector 77, and the delayed command latch 78. The case where the logic level combination of the correction code DSR<1:4> is ‘0100’ means that the second bit DSR<2> of the correction code DSR<1:4> is at a logic high level and all of the first bit DSR<1> of the correction code DSR<1:4>, the third bit DSR<3> of the correction code DSR<1:4> and the fourth bit DSR<4> of the correction code DSR<1:4> are at logic low levels. In the case where the logic level combination of the correction code DSR<1:4> is ‘0010,’ the delayed command DCMD may be generated by delaying the phase selection command PSCMD through the third selector 75, the third selected command latch 76, the fourth selector 77, and the delayed command latch 78. The case where the logic level combination of the correction code DSR<1:4> is ‘0010’ means that the third bit DSR<3> of the correction code DSR<1:4> is at a logic high level and all of the first bit DSR<1> of the correction code DSR<1:4>, the second bit DSR<2> of the correction code DSR<1:4> and the fourth bit DSR<4> of the correction code DSR<1:4> are at logic low levels. In the case where the logic level combination of the correction code DSR<1:4> is ‘0001,’ the delayed command DCMD may be generated by delaying the phase selection command PSCMD through the fourth selector 77 and the delayed command latch 78. The case where the logic level combination of the correction code DSR<1:4> is ‘0001’ means that the fourth bit DSR<4> of the correction code DSR<1:4> is at a logic high level and all of the first bit DSR<1> of the correction code DSR<1:4>, the second bit DSR<2> of the correction code DSR<1:4> and the third bit DSR<3> of the correction code DSR<1:4> are at logic low levels.

The operation of the delay correction circuit 56 shown in FIG. 26 is described below in detail with reference to FIGS. 27 to 30.

As shown in FIG. 27, in the case where the phase selection command PSCMD is generated at a time T41 a in a state in which the logic level combination of the correction code DSR<1:4> is set to ‘1000,’ the first selected command SC1 is generated at a time T42 a when a period corresponding to one cycle of the delay-locked clock DCLK elapses from the time T41 a. The second selected command SC2 is generated at a time T43 a when a period corresponding to one cycle of the delay-locked clock DCLK elapses from the time T42 a, and the third selected command SC3 is generated at a time T44 a when a period corresponding to one cycle of the delay-locked clock DCLK elapses from the time T43 a. The delayed command DCMD is generated at a time T45 a when a period corresponding to one cycle of the delay-locked clock DCLK elapses from the time T44 a. In other words, the delayed command DCMD is generated at the time T45 a when a period corresponding to four cycles of the delay-locked clock DCLK elapses from the time T41 a when the phase selection command PSCMD is generated in the state in which the logic level combination of the correction code DSR<1:4> is set to ‘1000.’

As shown in FIG. 28, in the case where the phase selection command PSCMD is generated at a time T41 b in a state in which the logic level combination of the correction code DSR<1:4> is set to ‘0100,’ the second selected command SC2 is generated at a time T42 b when a period corresponding to one cycle of the delay-locked clock DCLK elapses from the time T41 b. The third selected command SC3 is generated at a time T43 b when a period corresponding to one cycle of the delay-locked clock DCLK elapses from the time T42 b, and the delayed command DCMD is generated at a time T44 b when a period corresponding to one cycle of the delay-locked clock DCLK elapses from the time T43 b. In other words, the delayed command DCMD is generated at the time T44 b when a period corresponding to three cycles of the delay-locked clock DCLK elapses from the time T41 b when the phase selection command PSCMD is generated in the state in which the logic level combination of the correction code DSR<1:4> is set to ‘0100.’

As shown in FIG. 29, in the case where the phase selection command PSCMD is generated at a time T41 c in a state in which the logic level combination of the correction code DSR<1:4> is set to ‘0010,’ the third selected command SC3 is generated at a time T42 c when a period corresponding to one cycle of the delay-locked clock DCLK elapses from the time T41 c. The delayed command DCMD is generated at a time T43 c when a period corresponding to one cycle of the delay-locked clock DCLK elapses from the time T42 c. In other words, the delayed command DCMD is generated at the time T43 c when a period corresponding to two cycles of the delay-locked clock DCLK elapses from the time T41 c when the phase selection command PSCMD is generated in the state in which the logic level combination of the correction code DSR<1:4> is set to ‘0010.’

As shown in FIG. 30, in the case where the phase selection command PSCMD is generated at a time T41 d in a state in which the logic level combination of the correction code DSR<1:4> is set to ‘0001,’ the delayed command DCMD is generated at a time T42 d when a period corresponding to one cycle of the delay-locked clock DCLK elapses from the time T41 d. In other words, the delayed command DCMD is generated at the time T42 d when a period corresponding to one cycle of the delay-locked clock DCLK elapses from the time T41 d when the phase selection command PSCMD is generated in the state in which the logic level combination of the correction code DSR<1:4> is set to ‘0001.’

The operation of the command delay circuit 34 b shown in FIG. 18 in the case where the logic level combination of the phase control signal PH<0:1> is set in the sequence of ‘01,’ ‘00,’ ‘10,’ ‘11,’ and ‘01’ is described below with reference to FIGS. 31 to 35.

As shown in FIG. 31, in the case where the internal command ICMD is generated at a time T51 a in a state in which the logic level combination of the phase control signal PH<0:1> is set to ‘01,’ the selected command ICMDSN is generated in synchronization with the second internal clock QCLK at a time T52 a. At a time T53 a, the phase selection command PSCMD is outputted as the selected command ICMDSN and is latched in synchronization with the delay-locked clock DCLK. In a state in which the logic level combination of the correction code DSR<1:4> is set to ‘0001,’ the delayed command DCMD is generated at a time T54 a that is delayed by a period corresponding to one cycle of the delay-locked clock DCLK from the time T53 a at which the phase selection command PSCMD is generated.

As shown in FIG. 32, in the case where the internal command ICMD is generated at a time T51 b after the logic level combination of the phase control signal PH<0:1> changes from ‘01’ to ‘00,’ the selected command ICMDSN is generated in synchronization with the third internal clock IBCLK at a time T52 b. At a time T53 b, the phase selection command PSCMD is outputted as the selected command ICMDSN and is latched in synchronization with the delay-locked clock DCLK. In the state in which the logic level combination of the correction code DSR<1:4> is set to ‘0001,’ the delayed command DCMD is generated at a time T54 b that is delayed by a period corresponding to one cycle of the delay-locked clock DCLK from the time T53 b at which the phase selection command PSCMD is generated.

As shown in FIG. 33, in the case where the internal command ICMD is generated at a time T51 c after the logic level combination of the phase control signal PH<0:1> changes from ‘00’ to ‘10,’ the selected command ICMDSN is generated in synchronization with the fourth internal clock QBCLK at a time T52 c. At a time T53 c, the phase selection command PSCMD is outputted as the selected command ICMDSN and is latched in synchronization with the delay-locked clock DCLK. In the state in which the logic level combination of the correction code DSR<1:4> is set to ‘0001,’ the delayed command DCMD is generated at a time T54 c that is delayed by a period corresponding to one cycle of the delay-locked clock DCLK from the time T53 c at which the phase selection command PSCMD is generated.

As shown in FIG. 34, in the case where the internal command ICMD is generated at a time T51 d after the logic level combination of the phase control signal PH<0:1> changes from ‘10’ to ‘11,’ the selected command ICMDSN is generated in synchronization with the first internal clock ICLK at a time T52 d. At a time T53 d, the phase selection command PSCMD is outputted as the selected command ICMDSN and is latched in synchronization with the delay-locked clock DCLK. In the state in which the logic level combination of the correction code DSR<1:4> is set to ‘0001,’ the delayed command DCMD is generated at a time T54 d that is delayed by a period corresponding to one cycle of the delay-locked clock DCLK from the time T53 d at which the phase selection command PSCMD is generated.

As shown in FIG. 35, in the case where the internal command ICMD is generated at a time T51 e after the logic level combination of the phase control signal PH<0:1> changes from ‘11’ to ‘01,’ the selected command ICMDSN is generated in synchronization with the second internal clock QCLK at a time T52 e. At a time T53 e, the phase selection command PSCMD is outputted as the selected command ICMDSN and is latched in synchronization with the delay-locked clock DCLK. If the logic level combination of the phase control signal PH<0:1> changes from ‘11’ to ‘01,’ the logic level combination of the correction code DSR<1:4> is shifted from ‘0001’ to ‘0010.’ If the logic level combination of the correction code DSR<1:4> is shifted to ‘0010,’ the delayed command DCMD is generated at a time T54 e that is delayed by a period corresponding to two cycles of the delay-locked clock DCLK from the time T53 e at which the phase selection command PSCMD is generated.

As is apparent from the above descriptions, in the semiconductor device 1 in accordance with the embodiment, when generating the delayed command DCMD, in the case where the logic level combination of the phase control signal PH<0:1> has a predetermined logic level combination, a period to be shifted is corrected by the correction code DSR<1:4>. In the semiconductor device 1 in accordance with the embodiment, when generating the delayed command DCMD in such a way as to latch the internal command ICMD sequentially by clocks selected from among the first internal clock ICLK, the second internal clock QCLK, the third internal clock IBCLK, and the fourth internal clock QBCLK depending on the logic level combination of the phase control signal PH<0:1>, in the case where the logic level combination of the phase control signal PH<0:1> has a predetermined logic level combination, the delayed command DCMD is shifted by the correction code DSR<1:4>, whereby it is possible to prevent a phenomenon in which the delayed command DCMD becomes earlier by a period corresponding to one cycle of the delay-locked clock DCLK, from occurring. For example, in the case where the logic level combination of the phase control signal PH<0:1> changes from ‘11’ to ‘01,’ the delayed command DCMD is corrected by the correction code DSR<1:4> to be generated by being additionally deferred by a period corresponding to one cycle of the delay-locked clock DCLK.

The operation of the command delay circuit 34 b shown in FIG. 18 in the case where the logic level combination of the phase control signal PH<0:1> is set in the sequence of ‘11,’ ‘10,’ ‘00,’ ‘01,’ and ‘11’ is described below with reference to FIGS. 36 to 40.

As shown in FIG. 36, in the case where the internal command ICMD is generated at a time T61 a in a state in which the logic level combination of the phase control signal PH<0:1> is set to ‘11,’ the selected command ICMDSN is generated in synchronization with the first internal clock ICLK at a time T62 a. At a time T63 a, the phase selection command PSCMD is outputted as the selected command ICMDSN and is latched in synchronization with the delay-locked clock DCLK. In a state in which the logic level combination of the correction code DSR<1:4> is set to ‘0010,’ the delayed command DCMD is generated at a time T64 a that is delayed by a period corresponding to two cycles of the delay-locked clock DCLK from the time T63 a at which the phase selection command PSCMD is generated.

As shown in FIG. 37, in the case where the internal command ICMD is generated at a time T61 b after the logic level combination of the phase control signal PH<0:1> changes from ‘11’ to ‘10,’ the selected command ICMDSN is generated in synchronization with the fourth internal clock QBCLK at a time T62 b. At a time T63 b, the phase selection command PSCMD is outputted as the selected command ICMDSN and is latched in synchronization with the delay-locked clock DCLK. In the state in which the logic level combination of the correction code DSR<1:4> is set to ‘0010,’ the delayed command DCMD is generated at a time T64 b that is delayed by a period corresponding to two cycles of the delay-locked clock DCLK from the time T63 b at which the phase selection command PSCMD is generated.

As shown in FIG. 38, in the case where the internal command ICMD is generated at a time T61 c after the logic level combination of the phase control signal PH<0:1> changes from ‘10’ to ‘00,’ the selected command ICMDSN is generated in synchronization with the third internal clock IBCLK at a time T62 c. At a time T63 c, the phase selection command PSCMD is outputted as the selected command ICMDSN andis latched in synchronization with the delay-locked clock DCLK. In a state in which the logic level combination of the correction code DSR<1:4> is set to ‘0010,’ the delayed command DCMD is generated at a time T64 c that is delayed by a period corresponding to two cycles of the delay-locked clock DCLK from the time T63 c at which the phase selection command PSCMD is generated.

As shown in FIG. 39, in the case where the internal command ICMD is generated at a time T61 d after the logic level combination of the phase control signal PH<0:1> changes from ‘00’ to ‘01,’ the selected command ICMDSN is generated in synchronization with the second internal clock QCLK at a time T62 d. At a time T63 d, the phase selection command PSCMD is outputted as the selected command ICMDSN and is latched in synchronization with the delay-locked clock DCLK. In the state in which the logic level combination of the correction code DSR<1:4> is set to ‘0010,’ the delayed command DCMD is generated at a time T64 d that is delayed by a period corresponding to two cycles of the delay-locked clock DCLK from the time T63 d at which the phase selection command PSCMD is generated.

As shown in FIG. 40, in the case where the internal command ICMD is generated at a time T61 e after the logic level combination of the phase control signal PH<0:1> changes from ‘01’ to ‘11,’ the selected command ICMDSN is generated in synchronization with the first internal clock ICLK at a time T62 e. At a time T63 e, the phase selection command PSCMD is outputted as the selected command ICMDSN and is latched in synchronization with the delay-locked clock DCLK. If the logic level combination of the phase control signal PH<0:1> changes from ‘01’ to ‘11,’ the logic level combination of the correction code DSR<1:4> is shifted from ‘0010’ to ‘0001.’ If the logic level combination of the correction code DSR<1:4> is shifted to ‘0001,’ the delayed command DCMD is generated at a time T64 e that is delayed by a period corresponding to one cycle of the delay-locked clock DCLK from the time T63 e at which the phase selection command PSCMD is generated.

As is apparent from the above descriptions, in the semiconductor device 1 in accordance with an embodiment, when generating the delayed command DCMD, in the case where the logic level combination of the phase control signal PH<0:1> has a predetermined logic level combination, a period to be shifted is corrected by the correction code DSR<1:4>. In the semiconductor device 1 in accordance with an embodiment, when generating the delayed command DCMD in such a way as to latch the internal command ICMD sequentially by clocks selected from among the first internal clock ICLK, the second internal clock QCLK, the third internal clock IBCLK, and the fourth internal clock QBCLK depending on the logic level combination of the phase control signal PH<0:1>, in the case where the logic level combination of the phase control signal PH<0:1> has a predetermined logic level combination, the delayed command DCMD is shifted by the correction code DSR<1:4>, whereby it is possible to prevent a phenomenon in which the delayed command DCMD becomes later by only a period corresponding to one cycle of the delay-locked clock DCLK, from occurring. For example, in the case where the logic level combination of the phase control signal PH<0:1> changes from ‘01’ to ‘11,’ the delayed command DCMD is corrected by the correction code DSR<1:4> to be generated by being advanced by a period corresponding to one cycle of the delay-locked clock DCLK.

While various embodiments have been described above, it will be understood to those skilled in the art that the embodiments described are by way of example only. Accordingly, the semiconductor device described herein should not be limited based on the described embodiments. 

What is claimed is:
 1. A semiconductor device comprising: a delay-locked clock generation circuit configured to generate a delay-locked clock which is driven by at least one internal clock selected from a plurality of internal clocks in response to a phase control signal; and a latency command generation circuit configured to generate a latency command for generating transmission data from data by latching an internal command sequentially by the at least one internal clock selected from among the plurality of internal clocks in response to the phase control signal and shifting the sequentially latched internal command by a period set by a shifting control signal in response to the delay-locked clock.
 2. The semiconductor device according to claim 1, wherein the phase control signal is generated by comparing a feedback clock, generated by delaying the delay-locked clock, and one of the plurality of internal clocks.
 3. The semiconductor device according to claim 1, wherein the plurality of internal clocks comprise first, second, third, and fourth internal clocks, wherein the first, second, third, and fourth internal clocks are generated by dividing a clock.
 4. The semiconductor device according to claim 3, wherein the second internal clock is generated by delaying the first internal clock by a period corresponding to one half cycle of the clock, the third internal clock is generated by delaying the second internal clock by the period corresponding to one half cycle of the clock, and the fourth internal clock is generated by delaying the third internal clock by the period corresponding to one half cycle of the clock.
 5. The semiconductor device according to claim 3, wherein the delay-locked clock generation circuit comprises a clock delay circuit which drives the delay-locked clock by the at least one internal clock selected by the phase control signal from among the first, second, third, and fourth internal clocks.
 6. The semiconductor device according to claim 5, wherein, when the phase control signal has a first logic level combination, the clock delay circuit pull-up drives the delay-locked clock in synchronization with the first internal clock and pull-down drives the delay-locked clock in synchronization with the third internal clock.
 7. The semiconductor device according to claim 5, wherein, when the phase control signal has a second logic level combination, the clock delay circuit pull-up drives the delay-locked clock in synchronization with the second internal clock and pull-down drives the delay-locked clock in synchronization with the fourth internal clock.
 8. The semiconductor device according to claim 5, wherein the clock delay circuit comprises: a current supply circuit configured to supply a first current to nodes through which the delay-locked clock is outputted; a clock driving circuit configured to drive the delay-locked clock by internal clocks selected from among the first, second, third, and fourth internal clocks; and a current discharge circuit configured to discharge a second current, in response to the phase control signal, from nodes which are coupled to the clock driving circuit.
 9. The semiconductor device according to claim 3, wherein the latency command generation circuit comprises: a shifting control signal generation circuit configured to generate a shifting control signal for generating the latency command, from a reset signal and a latency signal, in response to the first, second, third, and fourth internal clocks, the phase control signal, and the delay-locked clock.
 10. The semiconductor device according to claim 9, wherein the shifting control signal generation circuit comprises: a reset delay circuit configured to generate a first delayed reset signal by latching the reset signal sequentially by internal clocks selected by the phase control signal from among the first, second, third, and fourth internal clocks and by latching the sequentially latched reset signal by the delay-locked clock; a reset replication delay circuit configured to generate a second delayed reset signal by delaying the first delayed reset signal; a counter configured to generate a counting number including information on a period from a time when the reset signal is generated to a time when the second delayed reset signal is generated; and a subtractor configured to generate the shifting control signal including information on a period that is obtained by subtracting a period corresponding to the counting number from a period set by the latency signal.
 11. The semiconductor device according to claim 3, wherein the latency command generation circuit comprises: a command delay circuit configured to generate a delayed command by latching the internal command sequentially by internal clocks selected by the phase control signal from among the first, second, third, and fourth internal clocks and by latching the sequentially latched internal command by the delay-locked clock.
 12. The semiconductor device according to claim 11, wherein the latency command generation circuit further comprises: a shift register configured to generate the latency command by shifting the delayed command based on the shifting control signal.
 13. The semiconductor device according to claim 3, wherein the latency command generation circuit comprises: a command delay circuit configured to adjust a logic level combination of a correction code based on the phase control signal, and configured to generate the delayed command for which a generation time is corrected by the correction code.
 14. The semiconductor device according to claim 13, wherein the command delay circuit comprises: a correction code generation circuit configured to generate a correction code which is shifted based on the phase control signal; a command phase selection circuit configured to generate a phase selection command by latching the internal command sequentially by internal clocks selected by the phase control signal from among the first, second, third, and fourth internal clocks and by latching the sequentially latched internal command by the delay-locked clock; and a delay correction circuit configured to generate the delayed command by delaying the phase selection command by the correction code.
 15. The semiconductor device according to claim 14, wherein the correction code generation circuit shifts the correction code to increase a delay period of the delay correction circuit when a logic level combination of the phase control signal has a first combination, and shifts the correction code to decrease a delay period of the delay correction circuit when the logic level combination of the phase control signal has a second combination.
 16. A semiconductor device comprising: a clock divider circuit configured to generate first, second, third, and fourth internal clocks by dividing a clock; a clock delay circuit configured to generate a delay-locked clock which is driven by a first set of internal clocks selected in response to a phase control signal from among the first, second, third, and fourth internal clocks; and a command delay circuit configured to generate a delayed command by latching an internal command sequentially by a second set of internal clocks selected in response to the phase control signal from among the first, second, third, and fourth internal clocks and by latching the sequentially latched internal command by the delay-locked clock.
 17. The semiconductor device according to claim 16, wherein the phase control signal is generated by comparing a feedback clock, generated through delaying the delay-locked clock, and one of the first, second, third, and fourth internal clocks.
 18. The semiconductor device according to claim 16, wherein, when the phase control signal has a first logic level combination, the clock delay circuit pull-up drives the delay-locked clock in synchronization with the first internal clock and pull-down drives the delay-locked clock in synchronization with the third internal clock, and wherein, when the phase control signal has a second logic level combination, the clock delay circuit pull-up drives the delay-locked clock in synchronization with the second internal clock and pull-down drives the delay-locked clock in synchronization with the fourth internal clock.
 19. The semiconductor device according to claim 16, wherein the clock delay circuit comprises: a current supply circuit configured to supply a first current to nodes through which the delay-locked clock is outputted; a clock driving circuit configured to drive the delay-locked clock by internal clocks selected from among the first, second, third, and fourth internal clocks; and a current discharge circuit configured to discharge a second current, in response to the phase control signal, from nodes which are coupled to the clock driving circuit.
 20. The semiconductor device according to claim 16, further comprising: a shifting control signal generation circuit configured to generate a shifting control signal from a reset signal and a latency signal in response to the first, second, third, and fourth internal clocks, the phase control signal, and the delay-locked clock.
 21. The semiconductor device according to claim 20, further comprising: a shift register configured to generate a latency command by shifting the delayed command based on the shifting control signal.
 22. The semiconductor device according to claim 16, wherein the command delay circuit adjusts a logic level combination of a correction code based on the phase control signal and corrects a generation time of the delayed command based on the correction code.
 23. The semiconductor device according to claim 22, wherein the command delay circuit comprises: a correction code generation circuit configured to generate a correction code which is shifted based on the phase control signal; a command phase selection circuit configured to generate a phase selection command by latching the internal command sequentially by internal clocks selected by the phase control signal from among the first, second, third, and fourth internal clocks and by latching the sequentially latched internal command by the delay-locked clock; and a delay correction circuit configured to generate the delayed command by delaying the phase selection command by the correction code.
 24. The semiconductor device according to claim 23, wherein the correction code generation circuit shifts the correction code to increase a delay period of the delay correction circuit when a logic level combination of the phase control signal has a first combination, and shifts the correction code to decrease a delay period of the delay correction circuit when the logic level combination of the phase control signal has a second combination.
 25. A semiconductor device comprising: a clock divider circuit configured to generate first, second, third, and fourth internal clocks by dividing a clock; a clock delay circuit configured to generate a delay-locked clock which is driven by a first set of internal clocks selected in response to a phase control signal from among the first, second, third, and fourth internal clocks; a correction code generation circuit configured to generate a correction code which is shifted when the phase control signal has a preset logic level combination; a command phase selection circuit configured to generate a phase selection command by latching an internal command sequentially by a second set of internal clocks selected by the phase control signal from among the first, second, third, and fourth internal clocks and by then latching the sequentially latched internal command by the delay-locked clock; and a delay correction circuit configured to generate a delayed command by delaying the phase selection command based on the correction code. 